import request from "@/utils/request.js";

export default {
	/**
	 * 获取首页数据
	 */
	indexData(data) {
		return request({
			url: 'api/index/indexData',
			loading: true,
			data
		})
	},
	/**
	 * 获取首页评价
	 */
	indexComment(data) {
		return request({
			url: 'api/index/indexComment',
			loading: true,
			data
		})
	},
	/**
	 * 获取文章详情
	 */
	articleInfo(data) {
		return request({
			url: 'api/index/articleInfo',
			loading: true,
			data
		})
	},
}